package com.example.train.model;

import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;

/**
    * 后台用户角色表
    */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class SysRole implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
    * 名称
    */
    @NotEmpty
    private String name;

    /**
    * 描述
    */
    private String description;

    /**
    * 后台用户数量
    */
    private Integer adminCount;

    /**
    * 创建时间
    */
    private Date createTime;

    /**
    * 启用状态：0->禁用；1->启用
    */
    private Integer status;

    private Integer sort;
}
